﻿using Simple.Common.Helpers;
using System;
using System.ComponentModel.DataAnnotations.Schema;

namespace Simple.Services.System.QHSEViolationCategory.Models;

/// <summary>
/// 学生
/// </summary>
public class QHSEViolationHSEModel : ModelBase
{

    [MaxLength(32)]
    public string Id { get; set; }


    [MaxLength(100)]
    public string? Code { get; set; }

    [MaxLength(500)]
    public string? Item { get; set; }


    [MaxLength(500)]
    public string? Value { get; set; }


    [MaxLength(100)]
    public string? ParentId { get; set; }

    [MaxLength(200)]
    public string? Note { get; set; }

    public int? OrderNo { get; set; }

    public override void ConfigureMapper(Profile profile)
    {
        profile.CreateMap<QHSESysViolationHSE, QHSEViolationHSEModel>()
            .ForMember(d => d.Id, options => options.MapFrom(s => s.Id));

        profile.CreateMap<QHSEViolationHSEModel, QHSESysViolationHSE>()
            .ForMember(d => d.Id, options => options.MapFrom(s => s.Id));
    }
}

